aboutsummaryrefslogtreecommitdiff
path: root/src/app/anime/[id]/[...animeId]
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-04-05 09:57:47 +0530
committerreal-zephex <[email protected]>2024-04-05 09:57:47 +0530
commit381a1cb5c14270d9bdc8cd56f17c75d79df231de (patch)
tree216f42d20165a2fbd349240f4fce6baa580324d3 /src/app/anime/[id]/[...animeId]
parentinmidst of rewriting the kdrama section. will complete it soon (diff)
downloaddramalama-381a1cb5c14270d9bdc8cd56f17c75d79df231de.tar.xz
dramalama-381a1cb5c14270d9bdc8cd56f17c75d79df231de.zip
added caching and video player
Diffstat (limited to 'src/app/anime/[id]/[...animeId]')
-rw-r--r--src/app/anime/[id]/[...animeId]/page.jsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/app/anime/[id]/[...animeId]/page.jsx b/src/app/anime/[id]/[...animeId]/page.jsx
index 60c05ee..950f618 100644
--- a/src/app/anime/[id]/[...animeId]/page.jsx
+++ b/src/app/anime/[id]/[...animeId]/page.jsx
@@ -32,8 +32,8 @@ export default async function Video({ params }) {
try {
link = data.sources[3].url;
} catch (error) {
- redirect("/404");
console.log("Episode not found.");
+ redirect("/404");
}
}
@@ -47,7 +47,6 @@ export default async function Video({ params }) {
<MediaPlayer
title={words}
src={link}
- playsInline
aspectRatio="16/9"
load="eager"
className={styles.VideoPlayer}